package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.List;

public class TypeOfCompetitionDetailsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public TypeOfCompetitionDetailsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTocdnoIsNull() {
            addCriterion("tocdno is null");
            return (Criteria) this;
        }

        public Criteria andTocdnoIsNotNull() {
            addCriterion("tocdno is not null");
            return (Criteria) this;
        }

        public Criteria andTocdnoEqualTo(String value) {
            addCriterion("tocdno =", value, "tocdno");
            return (Criteria) this;
        }

        public Criteria andTocdnoNotEqualTo(String value) {
            addCriterion("tocdno <>", value, "tocdno");
            return (Criteria) this;
        }

        public Criteria andTocdnoGreaterThan(String value) {
            addCriterion("tocdno >", value, "tocdno");
            return (Criteria) this;
        }

        public Criteria andTocdnoGreaterThanOrEqualTo(String value) {
            addCriterion("tocdno >=", value, "tocdno");
            return (Criteria) this;
        }

        public Criteria andTocdnoLessThan(String value) {
            addCriterion("tocdno <", value, "tocdno");
            return (Criteria) this;
        }

        public Criteria andTocdnoLessThanOrEqualTo(String value) {
            addCriterion("tocdno <=", value, "tocdno");
            return (Criteria) this;
        }

        public Criteria andTocdnoLike(String value) {
            addCriterion("tocdno like", value, "tocdno");
            return (Criteria) this;
        }

        public Criteria andTocdnoNotLike(String value) {
            addCriterion("tocdno not like", value, "tocdno");
            return (Criteria) this;
        }

        public Criteria andTocdnoIn(List<String> values) {
            addCriterion("tocdno in", values, "tocdno");
            return (Criteria) this;
        }

        public Criteria andTocdnoNotIn(List<String> values) {
            addCriterion("tocdno not in", values, "tocdno");
            return (Criteria) this;
        }

        public Criteria andTocdnoBetween(String value1, String value2) {
            addCriterion("tocdno between", value1, value2, "tocdno");
            return (Criteria) this;
        }

        public Criteria andTocdnoNotBetween(String value1, String value2) {
            addCriterion("tocdno not between", value1, value2, "tocdno");
            return (Criteria) this;
        }

        public Criteria andTocdnameIsNull() {
            addCriterion("tocdname is null");
            return (Criteria) this;
        }

        public Criteria andTocdnameIsNotNull() {
            addCriterion("tocdname is not null");
            return (Criteria) this;
        }

        public Criteria andTocdnameEqualTo(String value) {
            addCriterion("tocdname =", value, "tocdname");
            return (Criteria) this;
        }

        public Criteria andTocdnameNotEqualTo(String value) {
            addCriterion("tocdname <>", value, "tocdname");
            return (Criteria) this;
        }

        public Criteria andTocdnameGreaterThan(String value) {
            addCriterion("tocdname >", value, "tocdname");
            return (Criteria) this;
        }

        public Criteria andTocdnameGreaterThanOrEqualTo(String value) {
            addCriterion("tocdname >=", value, "tocdname");
            return (Criteria) this;
        }

        public Criteria andTocdnameLessThan(String value) {
            addCriterion("tocdname <", value, "tocdname");
            return (Criteria) this;
        }

        public Criteria andTocdnameLessThanOrEqualTo(String value) {
            addCriterion("tocdname <=", value, "tocdname");
            return (Criteria) this;
        }

        public Criteria andTocdnameLike(String value) {
            addCriterion("tocdname like", value, "tocdname");
            return (Criteria) this;
        }

        public Criteria andTocdnameNotLike(String value) {
            addCriterion("tocdname not like", value, "tocdname");
            return (Criteria) this;
        }

        public Criteria andTocdnameIn(List<String> values) {
            addCriterion("tocdname in", values, "tocdname");
            return (Criteria) this;
        }

        public Criteria andTocdnameNotIn(List<String> values) {
            addCriterion("tocdname not in", values, "tocdname");
            return (Criteria) this;
        }

        public Criteria andTocdnameBetween(String value1, String value2) {
            addCriterion("tocdname between", value1, value2, "tocdname");
            return (Criteria) this;
        }

        public Criteria andTocdnameNotBetween(String value1, String value2) {
            addCriterion("tocdname not between", value1, value2, "tocdname");
            return (Criteria) this;
        }

        public Criteria andTocddescIsNull() {
            addCriterion("tocddesc is null");
            return (Criteria) this;
        }

        public Criteria andTocddescIsNotNull() {
            addCriterion("tocddesc is not null");
            return (Criteria) this;
        }

        public Criteria andTocddescEqualTo(String value) {
            addCriterion("tocddesc =", value, "tocddesc");
            return (Criteria) this;
        }

        public Criteria andTocddescNotEqualTo(String value) {
            addCriterion("tocddesc <>", value, "tocddesc");
            return (Criteria) this;
        }

        public Criteria andTocddescGreaterThan(String value) {
            addCriterion("tocddesc >", value, "tocddesc");
            return (Criteria) this;
        }

        public Criteria andTocddescGreaterThanOrEqualTo(String value) {
            addCriterion("tocddesc >=", value, "tocddesc");
            return (Criteria) this;
        }

        public Criteria andTocddescLessThan(String value) {
            addCriterion("tocddesc <", value, "tocddesc");
            return (Criteria) this;
        }

        public Criteria andTocddescLessThanOrEqualTo(String value) {
            addCriterion("tocddesc <=", value, "tocddesc");
            return (Criteria) this;
        }

        public Criteria andTocddescLike(String value) {
            addCriterion("tocddesc like", value, "tocddesc");
            return (Criteria) this;
        }

        public Criteria andTocddescNotLike(String value) {
            addCriterion("tocddesc not like", value, "tocddesc");
            return (Criteria) this;
        }

        public Criteria andTocddescIn(List<String> values) {
            addCriterion("tocddesc in", values, "tocddesc");
            return (Criteria) this;
        }

        public Criteria andTocddescNotIn(List<String> values) {
            addCriterion("tocddesc not in", values, "tocddesc");
            return (Criteria) this;
        }

        public Criteria andTocddescBetween(String value1, String value2) {
            addCriterion("tocddesc between", value1, value2, "tocddesc");
            return (Criteria) this;
        }

        public Criteria andTocddescNotBetween(String value1, String value2) {
            addCriterion("tocddesc not between", value1, value2, "tocddesc");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}